﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace MapCenterSystem.Configuration
{
    public class GlobalConfig
    {
        public static String GetLibraryMap(string mapProvider)
        {
            return ConfigurationManager.AppSettings[mapProvider.ToLower()];
        }

        public static string SourceBackup(string source)
        {
            return ConfigurationManager.AppSettings[source + "_backup"];

        }

        public static String ConnectionString
        {
            get{
                return ConfigurationManager.ConnectionStrings["mobimap"].ConnectionString;
            }
        }



        public static int TimeOut
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["TimeOut"]);
            }
        }

    }
}
